package com.example.asapp.user.role;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

@Service
public class RoleService {

    @Autowired
    RoleDao roleDao;

    public List<Role> findAll() {
        return roleDao.findAll();
    }

    public Role saveOne(Role role) {
        return roleDao.save(role);
    }

    public void deleteByPrimary(String id) {
      roleDao.deleteById(id);
    }
}
